package com.etc.pojo;

import lombok.Data;
import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.stereotype.Component;

/**
 * @program: RookieSocialNetworking02
 * @description: 用户实体类
 * @author: 梁伟文
 * @create: 2020-08-14 20:20
*/
//@Component
@Data
public class User {
    private Integer userId;
    private String userName;
    private String userPwd;
    private String userImg;
    private String userTel;
    private String userSign;
    private Integer userStatus;
    public static final String SOLT = "caiji6";

    public User(String userName, String userPwd, String userImg, String userTel, String userSign, Integer userStatus) {
        this.userName = userName;
        this.userPwd = userPwd;
        this.userImg = userImg;
        this.userTel = userTel;
        this.userSign = userSign;
        this.userStatus = userStatus;
    }

    public User(Integer userId, String userName, String userPwd, String userImg, String userTel, String userSign, Integer userStatus) {
        this.userId = userId;
        this.userName = userName;
        this.userPwd = userPwd;
        this.userImg = userImg;
        this.userTel = userTel;
        this.userSign = userSign;
        this.userStatus = userStatus;
    }
    public User() {
    }
    public User(String userName, String userPwd) {
        this.userName = userName;
        this.userPwd = userPwd;
    }

    public User(String userName) {
        this.userName = userName;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getUserSign() {
        return userSign;
    }

    public void setUserSign(String userSign) {
        this.userSign = userSign;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public static String getSOLT() {
        return SOLT;
    }
}
